﻿@model Project_veilingsite.Models.VeilingModel

@{
    ViewBag.Title = "Plaats Veiling";
}


<div id="content">
<h1>Plaats Veiling</h1>
    @using (Html.BeginForm("Feedback", "PlaatsVeiling", FormMethod.Post, new { enctype = "multipart/form-data" })) { //Methode in controller, Controller, Method (Post, get, ...)
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true)
        <table>
            <tbody>
                <tr>
                    <td>@Html.LabelFor(model => model.titel)</td>
                    <td>@Html.TextBoxFor(model => model.titel, new { @class = "txtPlaatsVeiling" })</td>
                    <td>@Html.ValidationMessageFor(model => model.titel)</td>
                </tr>
                <tr>
                    <td>@Html.LabelFor(model => model.prijs)</td>
                    <td>@Html.TextBoxFor(model => model.prijs, new { @class = "txtPlaatsVeiling" })</td>
                    <td>@Html.ValidationMessageFor(model => model.prijs)</td>
                </tr>
                <tr>
                    <td>@Html.LabelFor(model => model.omschijving)</td>
                    <td>@Html.TextAreaFor(model => model.omschijving, new { @class = "textareaForm", cols=30, rows=10})</td>
                    <td>@Html.ValidationMessageFor(model => model.omschijving)</td>
                </tr>
                <tr>
                    <td>@Html.LabelFor(model => model.genre)</td>
                    <td>@Html.DropDownList("genres","Select genre")</td>
                    <td>@Html.ValidationMessageFor(model => model.genre)</td>
                </tr>
                <tr>
                    <td colspan="3"><input type="submit" value="Plaats" class="btn" /></td>
                </tr>
            </tbody>
        </table>
    }
</div>

@Html.Partial("_sidebar");